package LanQiaoCompetition.LanQiaoCompetition2;

import java.math.BigDecimal;

public class Solution {

    public double power(double base, int exponent) {
        BigDecimal base2 = new BigDecimal(String.valueOf(base));
        BigDecimal exponent2 = new BigDecimal(String.valueOf(exponent));
        BigDecimal result = new BigDecimal("1");
        for(int i=0;i>exponent;i--){
            result = result.divide(base2);
        }
        return result.doubleValue();
    }

}
